package com.yushu.job;

import com.baomidou.mybatisplus.service.IService;
import com.yushu.job.pojo.TaskDO;
import org.quartz.SchedulerException;



 /**定时任务
 * @author test
 * @CreateDate 2020-12-03 15:47:25
 */
public interface JobService extends IService<TaskDO> {

	void initSchedule() throws SchedulerException;

	void changeStatus(Long jobId, String cmd) throws SchedulerException;

	void updateCron(Long jobId) throws SchedulerException;

	void runNowOnce(Long jobId)  throws SchedulerException ;
}
